using System;
using System.Collections.Generic;
using System.Text;

namespace MspEmulator
{
    class sendStatus : ISend
    {
        private byte relays;
        public void Send()
        {
            relays = Device.relaysState();
            Serial.Send(Utility.buildPack(Utility.collectData((byte)Utility.functCode.Status, Device.sysState, Device.vacState, Device.fVacuum, Device.hVacuum, Device.hCurrent, Device.eCurrent, Device.iVoltage, Device.fV1, Device.fV2, Device.sVoltage, Device.cVPlus, Device.cVMin, Device.dVoltage, relays, Device.TurboPump.Speed)));
        }
    }
}
